package zuoye;

import static jdk.nashorn.internal.objects.NativeArray.reverse;
//字符串反转
//举例：键盘录入”abc”
//输出结果：”cba”

public class zy1 {
    public static void main(String[] args) {
        String s = "abc";
        reverse(s);
    }

    public static void reverse(String str) {
        System.out.println(
                new StringBuilder(str).reverse().toString());
    }

}
